// 页面button请求方式   显示   url控制
export const configApi = {
  // 接口权限
  interfaceManagement: {
    // 查询
    queryBtn: false,
    queryUrl: '/IAM/interface',
    queryType: 'get',
    // 新增
    addBtn: false,
    addUrl: '/IAM/interface',
    addType: 'post',
    // 删除
    delBtn: false,
    delUrl: '/IAM/interface',
    delType: 'dele',
    // 编辑
    editBtn: false,
    editUrl: '/IAM/interface',
    editType: 'put',
  },
  // 角色管理
  role: {
    // 查询
    queryBtn: false,
    queryUrl: '/IAM/role',
    queryType: 'get',
    // 新增
    addBtn: false,
    addUrl: '/IAM/role',
    addType: 'post',
    // 编辑
    editBtn: false,
    editUrl: '/IAM/role',
    editType: 'put',
    // 删除
    delBtn: false,
    delUrl: '/IAM/role',
    delType: 'dele',
    // 授权
    grantBtn: false,
    grantUrl: '/IAM/role/authorization',
    grantType: 'post',
  },
  // 菜单权限
  rights: {
    // 查询
    queryBtn: false,
    queryUrl: '/IAM/permission/tree',
    queryType: 'get',
    // 新增
    addBtn: false,
    addUrl: '/IAM/permission',
    addType: 'post',
    // 编辑
    editBtn: false,
    editUrl: '/IAM/permission',
    editType: 'put',
    // 删除
    delBtn: false,
    delUrl: '/IAM/permission',
    delType: 'dele',
  },
  // 机构管理
  organ: {
    // 查询
    queryBtn: false,
    queryUrl: '/IAM/organ/tree',
    queryType: 'get',
    // 新增
    addBtn: false,
    addUrl: '/IAM/organ',
    addType: 'post',
    // 编辑
    editBtn: false,
    editUrl: '/IAM/organ',
    editType: 'put',
    // 删除
    delBtn: false,
    delUrl: '/IAM/organ',
    delType: 'dele',
  },
  // 租户管理
  tenant: {
    // 查询
    queryBtn: false,
    queryUrl: '/IAM/tenant',
    queryType: 'get',
    // 新增
    addBtn: false,
    addUrl: '/IAM/tenant',
    addType: 'post',
    // 编辑
    editBtn: false,
    editUrl: '/IAM/tenant',
    editType: 'put',
  },
  // 用户管理
  usergua: {
    // 查询
    queryBtn: false,
    queryUrl: '/IAM/organ/user',
    queryType: 'get',
    // 新增
    addBtn: false,
    addUrl: '/IAM/user',
    addType: 'post',
    // 编辑
    editBtn: false,
    editUrl: '/IAM/user',
    editType: 'put',
    // 删除
    delBtn: false,
    delUrl: '/IAM/user',
    delType: 'dele',
  },
  // 菜单管理
  menu: {
    // 查询
    queryBtn: false,
    queryUrl: '/IAM/menu',
    queryType: 'get',
    // 新增
    addBtn: false,
    addUrl: '/IAM/menu',
    addType: 'post',
    // 编辑
    editBtn: false,
    editUrl: '/IAM/menu',
    editType: 'put',
    // 删除
    delBtn: false,
    delUrl: '/IAM/menu',
    delType: 'dele',
  },
  // 岗位管理
  postMan: {
    // 查询
    queryBtn: false,
    queryUrl: '/IAM/post',
    queryType: 'get',
    // 新增
    addBtn: false,
    addUrl: '/IAM/post',
    addType: 'post',
    // 编辑
    editBtn: false,
    editUrl: '/IAM/post',
    editType: 'put',
    // 删除
    delBtn: false,
    delUrl: '/IAM/post',
    delType: 'dele',
  },
  test: {
    /* 审批*/
    ShenpiBtn: false,
    ShenpiUrl: '/IAM/derate',
    ShenpiType: 'post',
    /* 删除*/
    delBtnBtn: false,
    delBtnUrl: '/IAM/derate',
    delBtnType: 'post',
  },
  tests: {
    /* 审批*/
    ShenpiBtns: false,
    ShenpiUrls: '/IAM/installment',
    ShenpiTypes: 'post',
    /* 删除*/
    delBtnBtns: false,
    delBtnUrls: '/IAM/installment',
    delBtnTypes: 'post',
  },
  testss: {
    /* 预留审批*/
    ShenpiBtnss: false,
    ShenpiUrlss: '/IAM/reserver',
    ShenpiTypess: 'post',
    /* 查询*/
    queryBtnss: false,
    queryUrlss: '/IAM/reserver',
    queryTypess: 'post',
  },
  team: {
    // 查询
    queryBtn: true,
    queryUrl: '/IAM/team',
    queryType: 'get',
    // 新增
    addBtn: true,
    addUrl: '/IAM/team',
    addType: 'post',
    // 编辑
    editBtn: true,
    editUrl: '/IAM/team',
    editType: 'put',
    // 删除
    delBtn: true,
    delUrl: '/IAM/team',
    delType: 'dele',

    setBtn: true,
    setUrl: '/IAM/setTeam',
    setType: 'put',
    // 授权
    grantBtn: false,
    grantUrl: '/IAM/team/authorization',
    grantType: 'post',
    // 根据Id获取
    getIdType: 'get',
    getIdUrl: '/IAM/teamdto',
    //设置成员
    setUserType: 'post',
    setUSerUrl: '/IAM/team/userSet'
  },
}
